import request from '@/utils/request'

export function noticeList(query) {
  return request({
    url: '/basic/notice/ownList',
    method: 'get',
    params: query
  })
}
export function noticeReadDone(query) {
  return request({
    url: '/basic/notice/read',
    method: 'post',
    params: query
  })
}
export function getNoticeDetail(id) {
  return request({
    url: `/basic/notice/${id}`,
    method: 'get'
  })
}

export function messageList(query) {
  return request({
    url: '/basic/message/ownList',
    method: 'get',
    params: query
  })
}

export function messageReadDone(query) {
  return request({
    url: '/basic/message/read',
    method: 'post',
    params:query
  })
}
